<template>
  <div class="wrapper" ref="wrapper">
      <div>
           <slot></slot>
      </div>
     
  </div>
</template>

<script>
import {_InitScroll} from "@/common/js/better-scroll"
export default {
    data(){
        return{
            BsApp:{}
        }
    },
    props:{
        goods:{
            default:()=>[],
            type:Array
        }
    },
    mounted(){
        this.BsApp = new _InitScroll(this.$refs.wrapper)
    },
    watch:{
        goods(){
          this.BsApp.refresh()
        }
    }
}
</script>

<style>

</style>